package com.winning.sjzc.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.winning.sjzc.common.dao.jcgl.SysYyzcMapper;
import com.winning.sjzc.common.entity.po.SysYyzcEntity;
import com.winning.sjzc.common.service.SysYyzcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * description:
 *
 * @author yanxf@winning.com.cn
 * @date 2019/08/07 17:14
 */
@Service
public class SysYyzcServiceImpl implements SysYyzcService {

  @Autowired
  private SysYyzcMapper sysYyzcMapper;

  @Override
  public SysYyzcEntity getSysYyzc() {
    return sysYyzcMapper
        .selectOne(new LambdaQueryWrapper<SysYyzcEntity>().eq(SysYyzcEntity::getYydm, "SJZC"));
  }
}
